package com.black.system.domain.resp.system;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.black.common.annotation.DictDataProperty;
import com.black.system.excelconvert.SysDictDataConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author L
 */
@Getter
@Setter
@ApiModel(value = "SysPostResp", description = "岗位信息表响应对象")
@ExcelIgnoreUnannotated
public class SysPostResp {

    @ExcelProperty(value = "岗位编码", index = 1)
    @ApiModelProperty(value = "岗位编码")
    private String postCode;

    @ExcelProperty(value = "岗位名称", index = 2)
    @ApiModelProperty(value = "岗位名称")
    private String postName;

    @ExcelProperty(value = "显示顺序", index = 3)
    @ApiModelProperty(value = "显示顺序")
    private Integer postSort;

    @ExcelProperty(value = "岗位状态", converter = SysDictDataConverter.class, index = 4)
    @DictDataProperty(value = "sys_normal_disable")
    @ApiModelProperty(value = "状态（0正常 1停用）")
    private String status;

    @ExcelProperty(value = "创建时间", index = 5)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ExcelProperty(value = "岗位ID", index = 0)
    @ApiModelProperty(value = "岗位ID")
    private Long postId;
}
